<!--<?php
include_once PrintEot('left');
print <<<EOT
-->
<h2>首页版块管理</h2>
<div class="tr5">
解释: <font color="red">权重越大排序越位置越靠前，权重为<b>0</b>时表示删除该条内容</font><br />
只选择一个显示版块为类型一，选择两个为类型二，选择三个为类型三<br />
<img src="images/admin/admin-mode.gif" />
</div>
<h2><span style="cursor:pointer;margin-right:1.4em;color:#ff0000;" onclick="addTpltype();" title="添加">+添加</span> 管理列表</h2>
<form action="$basename" method="post">
	<input type="hidden" name="action" value="indexforum" />
	<input type="hidden" name="step" value="2" />
	<table width="100%" cellspacing="0" cellpadding="0">
		<tr class="tr3"><td width="5%">ID</td><td class="30">权重<font color="red">*必填</font></td><td>模板类型</td><td>包含版块</td></tr>
	
<!--
EOT;
$i = 0;
foreach ($index_forum_config as $key => $value) {
$i++;
$type = count($value) == 3 ? '类型三' : (count($value) == 2 ? '类型二' : '类型一');
print <<<EOT
-->
		<tr class="tr3"><td>$i</td><td><input type="text" class="input" name="level[$key]" value="$key" size="3"><input type="hidden" name="old_level[$key]" value="$key"></td><td>$type</td><td>{$fidoptions[$key][0]}&nbsp;{$fidoptions[$key][1]}&nbsp;{$fidoptions[$key][2]}</td></tr>	
<!--
EOT;
}print <<<EOT
-->
	<tbody id="tbody"></tbody>
	<tbody id="tmode" style="display:none;"><tr class="tr3"><td></td><td><input class="input" name="new_level[]" size="3"></td><td></td><td><select name="new_fid1[]">$forumoptions&nbsp;<select name="new_fid2[]">$forumoptions&nbsp;<select name="new_fid3[]">$forumoptions&nbsp;</td> </tr></tbody>
	</table>
	<br />
	<center><input type="submit" class="btn" value="提 交" /></center>
</form>
<script language="JavaScript">
function addTpltype(){
	var s = getObj('tmode').firstChild.cloneNode(true);
	getObj('tbody').appendChild(s);
}
</script>
<!--
EOT;
include_once PrintEot('adminbottom');
?>-->